package schlexget;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

public class mainclass {
  public static String getSCHLEX_LOGIN_URL() {
    return mainclass.SCHLEX_LOGIN_URL;
  }

  private String              strUsername;

  private String              strPassword;

  private final static String SCHLEX_LOGIN_URL = "http://www.schlex.de/include.php?path=login/login.php";

  public mainclass() {
  }

  public String getStrPassword() {
    return this.strPassword;
  }

  public String getStrUsername() {
    return this.strUsername;
  }

  public boolean login() {
    HttpURLConnection conn;
    try {
      conn = (HttpURLConnection) new URL(mainclass.SCHLEX_LOGIN_URL).openConnection();
    } catch (MalformedURLException mfurle) {
      mfurle.printStackTrace();
      return false;
    } catch (IOException ioe) {
      ioe.printStackTrace();
      return false;
    }

    return false;
  }

  public void setPassword(String strPassword) {
    this.strPassword = strPassword;
  }

  public void setUsername(String strUsername) {
    this.strUsername = strUsername;
  }
}
